#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    int x = a, y = a, z = a;
    int n = 0;
    for (x = a; x <= b; x++) {
        for (y = a; y <= b; y++) {
            for (z = a; z <= b; z++) {
                if (2 * x + 3 * y + 5 * z == 100) {
                    n++;
                }
            }
        }
    }
    printf("%d", n);
    return 0;
}